package org.hxyjs.entity;

import java.io.Serializable;


/**
 * @author 
 */
public class Field implements Serializable {
    private String fno;

    private String fname;

    private String fcountry;

    private String fnum;

    private String fdesc;

    private static final long serialVersionUID = 1L;

    public String getFno() {
        return fno;
    }

    public void setFno(String fno) {
        this.fno = fno;
    }

    public String getFname() {
        return fname;
    }

    public void setFname(String fname) {
        this.fname = fname;
    }

    public String getFcountry() {
        return fcountry;
    }

    public void setFcountry(String fcountry) {
        this.fcountry = fcountry;
    }

    public String getFnum() {
        return fnum;
    }

    public void setFnum(String fnum) {
        this.fnum = fnum;
    }

    public String getFdesc() {
        return fdesc;
    }

    public void setFdesc(String fdesc) {
        this.fdesc = fdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Field other = (Field) that;
        return (this.getFno() == null ? other.getFno() == null : this.getFno().equals(other.getFno()))
            && (this.getFname() == null ? other.getFname() == null : this.getFname().equals(other.getFname()))
            && (this.getFcountry() == null ? other.getFcountry() == null : this.getFcountry().equals(other.getFcountry()))
            && (this.getFnum() == null ? other.getFnum() == null : this.getFnum().equals(other.getFnum()))
            && (this.getFdesc() == null ? other.getFdesc() == null : this.getFdesc().equals(other.getFdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFno() == null) ? 0 : getFno().hashCode());
        result = prime * result + ((getFname() == null) ? 0 : getFname().hashCode());
        result = prime * result + ((getFcountry() == null) ? 0 : getFcountry().hashCode());
        result = prime * result + ((getFnum() == null) ? 0 : getFnum().hashCode());
        result = prime * result + ((getFdesc() == null) ? 0 : getFdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fno=").append(fno);
        sb.append(", fname=").append(fname);
        sb.append(", fcountry=").append(fcountry);
        sb.append(", fnum=").append(fnum);
        sb.append(", fdesc=").append(fdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}